<%@ taglib prefix="s" uri="/struts-tags"%>
<table width="100%">
		<tr>
			<td height="40" class="sectionheading bottom-border">
				Manage Lists
			</td>
		</tr>
		<tr>
			<td height="8">
			</td>
		</tr>
		<tr>
			<td height="8"><s:actionmessage cssClass="verdana11greynormal" theme="simple" /></td>
		</tr>
		<tr><td><s:actionerror cssClass="Note-red" /></td></tr>
		<s:form method="post" action="getGroupList" id="form" theme="simple">
		<tr>
			<td>
				<table width="100%">
						<tr>
							<td align="right"
								class="verdana12blacknormal" width="375px">
								Select list:
									<s:select name="groupId" list="groupList" listKey="groupId"
										listValue="name" multiple="false" cssClass="Textfiled-border" theme="simple"></s:select>
							</td>
							<td align="left">
								<s:submit type="image" src="../Admin-Images/load-btn.gif" theme="simple" value="Load" name="load"/>
							</td>
						</tr>
				</table>
			</td>
		</tr>
		</s:form>
		<s:form method="post" action="deleteEmailList" id="deletefrm" theme="simple">
		<tr>
			<td>
				<table width="100%">
						<tr>
							<td  align="center" class="verdana12darkgreybold">
								To select more than one email, drag your mouse
								<br>
								or click with the &lt;CTRL&gt; Key pressed.
								<br><br><br>
								<s:if test="groupUserList.size > 0">
								<s:hidden name="groupId" value="%{groupId}" />
								<s:select list="groupUserList" name="email" listKey="id.user.id" listValue="id.user.email" cssClass="Textfiled-border" multiple="true" size="10"></s:select>
								</s:if>
								<s:else>
								<select class="Textfiled-border" name="Emails" multiple="MULTIPLE" size="10"></select>
								</s:else>
							</td>
						</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td>
				<table width="100%">
					<tr>
							<td align="center"
								class="verdana12darkgreybold">
								<s:submit type="image" src="../Admin-Images/delete-selected-btn.gif" theme="simple" value="Delete Selected" name="B2"  onclick="return wantToDelete('Are You sure you want to delete selected Emails');" />
								&nbsp;&nbsp;
								<img style="cursor: pointer;" onclick="document.getElementById('deletefrm').reset();" src="../Admin-Images/reset-button.gif" alt="Reset">
								&nbsp;
							</td>
						</tr>
				</table>
			</td>
		</tr>
		</s:form>
</table>
